<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<div class="easyui-layout" fit="true">
  <div region="center" style="padding:0px;border:0px">
  <t:datagrid name="studentList" checkbox="false" fitColumns="true" title="学生表" actionUrl="studentController.do?select" idField="id" fit="true" queryMode="group">
  	<t:dgCol title="common.id" field="id" hidden="true"></t:dgCol>
	<t:dgCol title="学号" field="staffNo" width="250" query="true" ></t:dgCol> 
	<t:dgCol title="姓名" field="realName" width="250" query="true" ></t:dgCol>
   </t:datagrid>
  </div>
 </div>
 <script>
	function getData(){
		var rows = $('#studentList').datagrid('getSelections');
		if(rows.length==0){
			tip("请选择学生!")
			return;
		}
		return rows;
	}
</script>